﻿using SqlSugar;

namespace Magic.Core;

/// <summary>
/// 管理员角色关系表
///</summary>
[SugarTable("sys_user_role")]
public class SysUserRole
{
    /// <summary>
    /// 管理员ID 
    ///</summary>
    [SugarColumn(ColumnName = "uid", IsPrimaryKey = true)]
    public int Uid { get; set; }
    /// <summary>
    /// 分组ID 
    ///</summary>
    [SugarColumn(ColumnName = "role_id", IsPrimaryKey = true)]
    public int RoleId { get; set; }
    [Navigate(NavigateType.OneToOne, nameof(RoleId),nameof(Core.SysRole.Id))]
    public SysRole SysRole { get; set; }
}
